<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core">
    <h:body>
		<ui:composition template="./templates/framework.xhtml">
			<ui:define name="content">
				<ui:include src="./templates/header.xhtml">
					<ui:param name="text" value="#{i18n['generic.back']}" />
					<ui:param name="link" value="index.xhtml" />
				</ui:include>
				<h:form>
					<h:dataTable value="#{listGroupsBean.groups}" var="group" styleClass="table" rendered="#{not empty listGroupsBean.groups}" columnClasses="titleColumn,deleteColumn">
						<h:column>
							<div class="titleLink">
								<h:outputLink value="editgroup.xhtml?id=#{group.exposableId}" styleClass="titleLink" title="#{i18n['listGroups.edit']}">
									<h:outputText value="#{group.title}" />
								</h:outputLink>
							</div>
						</h:column>
						<h:column>
							<h:outputLink value="./listgroups.xhtml?delete=#{group.exposableId}" onclick="return confirm('#{i18n['listGroups.deleteConfirmation']}')" styleClass="deleteLink"></h:outputLink>
						</h:column>
					</h:dataTable>
				</h:form>
			</ui:define>
		</ui:composition>
    </h:body>
</html>